package com.xuzhiguang.baidu.pan.sdk.model;

import java.util.List;

/**
 * @author xuzhiguang
 * @date 2020/6/26 22:47
 */
public class BasicFileManagerResult extends BaiduPanCommonResult {

    /**
     * 任务id，异步操作文件时返回
     */
    private Long taskid;

    /**
     * 操作文件结果
     */
    private List<Info> info;

    @Override
    public String toString() {
        return "BasicFileManagerResult{" +
                "super=" + super.toString() + '\''+
                ", taskid=" + taskid +
                ", info=" + info +
                '}';
    }

    public Long getTaskid() {
        return taskid;
    }

    public void setTaskid(Long taskid) {
        this.taskid = taskid;
    }

    public List<Info> getInfo() {
        return info;
    }

    public void setInfo(List<Info> info) {
        this.info = info;
    }

    public static class Info {

        /**
         * 操作结果
         */
        private Integer errno;

        /**
         * 文件路径
         */
        private String path;

        @Override
        public String toString() {
            return "Info{" +
                    "errno=" + errno +
                    ", path='" + path + '\'' +
                    '}';
        }

        public Integer getErrno() {
            return errno;
        }

        public void setErrno(Integer errno) {
            this.errno = errno;
        }

        public String getPath() {
            return path;
        }

        public void setPath(String path) {
            this.path = path;
        }
    }

}
